﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace WpfControlLibrary.Converts
{
    /// <summary>
    /// 调整滑块的尺寸
    /// </summary>
    [ValueConversion(typeof(double), typeof(double))]
    public class OnOffButtonScrollSizeConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            double source = (double)value;
            return source * 0.95;
            //throw new NotImplementedException();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
